package MineGod;

import java.io.IOException;

import org.lwjgl.opengl.GL11;
import org.newdawn.slick.opengl.Texture;
import org.newdawn.slick.opengl.TextureLoader;
import org.newdawn.slick.util.ResourceLoader;

public class BlockLava extends Block{
	public static Texture lavaTex;
	public BlockLava(){
		super(BlockType.lava);
		maxDurability = 1;
		durability = 1;
		obeyGravity = true;
		isLiquid = true;
		isSolid = false;
	}
	
	@Override
	public Entity dropItem(double x, double y) {
		return null;
	}

	@Override
	public Texture getTexture() {
		return lavaTex;
	}

	public static void loadTexture() {
		try {
			lavaTex = TextureLoader.getTexture("PNG", ResourceLoader.getResourceAsStream("res/lava.png"));
		} catch (IOException e) {
			e.printStackTrace();
		}
	}
}
